####
# 
# File: sfxVersion
# 
# (C) Copyright 2019. All rights reserved.
# 
# Author: ShenYongchen (shenyczz@163.com)
# 
###############################################################################
# 
if(SFX_MACRO_MESSAGE_SWITCH)
  message(STATUS "sfx Macros - ${CMAKE_CURRENT_LIST_FILE}")
endif()

set(SFX_MAJOR_VERSION 1)
set(SFX_MINOR_VERSION 0)
set(SFX_BUILD_VERSION 1)
set(SFX_VERSION "${SFX_MAJOR_VERSION}.${SFX_MINOR_VERSION}.${SFX_BUILD_VERSION}")

if (NOT SFX_MINOR_VERSION LESS 100)
  message(FATAL_ERROR
    "The minor version number cannot exceed 100 without changing "
    "`SFX_VERSION_CHECK`.")
endif ()

if (NOT SFX_BUILD_VERSION LESS 100000000)
  message(FATAL_ERROR
    "The build version number cannot exceed 100000000 without changing "
    "`SFX_VERSION_CHECK`.")
endif ()
